package cn.thr.ymcc.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.util.Date;
import java.util.List;

@Data
    public class MessageDto {
        //消息标题
        private String titie;
        //消息类容
        private String content;
        //发送时间
        private Date sendTime = new Date();


        private List<SmsDto> smsDtoList;
        private List<EmailDot> emailDotList;
        private List<StationDto> StationDotList;


    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static  class  SmsDto{
        private Long userId;
        private  String phone;
        private  String ip;
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static  class  EmailDot{
        private Long userId;
        private  String email;
        private  String copyto;
    }

        @Data
        @AllArgsConstructor
        @NoArgsConstructor
        public static  class  StationDto{
            private Long userId;
            private  String type;
            private  Boolean isread =false;  //是否已读

            public StationDto(Long userId, String type) {
                this.userId = userId;
                this.type = type;
            }


        }
}
